home *** CD-ROM | disk | FTP | other *** search
/ Champak 45 / Vol 45.iso / games / cocoon.swf / scripts / DefineButton2_536 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2006-06-13  |  480 b   |  21 lines

  1. on(release){
  2.    if(_root.name != "" && _root.score != 0)
  3.    {
  4.       sendVar = new LoadVars();
  5.       sendVar.key = "cocoon";
  6.       sendVar.action = "a";
  7.       sendVar.nm = _root.name;
  8.       sendVar.sc = _root.score;
  9.       sendVar.onLoad = function()
  10.       {
  11.          _root.tendina.scoretable.fill();
  12.       };
  13.       sendVar.sendAndLoad("http://www.naive.it/hss/scores.php",sendVar,"POST");
  14.       play();
  15.    }
  16.    else
  17.    {
  18.       _root.gotoAndPlay("home");
  19.    }
  20. }
  21.